/*
   Chiroptera - A Java client for Bacula

   The main author of Chiroptera is Marcos Paulo Serafim.
   This program is Free Software; you can redistribute it and/or
   modify it under the terms of version two of the GNU General Public
   License as published by the Free Software Foundation and included
   in the file LICENSE.

   This program is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
   02110-1301, USA.
*/
package br.eti.mps.chiroptera.lib;

import java.util.Calendar;

/**
 *
 * @author <a href="mailto:mpserafim[at]gmail[dot]com">Marcos Paulo Serafim</a>
 */
public class Job {
	private int id;
	private String name;
	private String level;
	private String type;
	private int priority;
	private String volume;
	private int files;
	private String bytes;
	private String status;
	private Calendar finished;
	private Calendar scheduled;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	public String getVolume() {
		return volume;
	}
	public void setVolume(String volume) {
		this.volume = volume;
	}
	public int getFiles() {
		return files;
	}
	public void setFiles(int files) {
		this.files = files;
	}
	public String getBytes() {
		return bytes;
	}
	public void setBytes(String bytes) {
		this.bytes = bytes;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Calendar getFinished() {
		return finished;
	}
	public void setFinished(Calendar finished) {
		this.finished = finished;
	}
	public Calendar getScheduled() {
		return scheduled;
	}
	public void setScheduled(Calendar scheduled) {
		this.scheduled = scheduled;
	}
	
	public String toString() {
		StringBuffer s = new StringBuffer();
		s.append("id: [").append(id).append("], ")
			.append("name: [").append(name).append("], ")
			.append("level: [").append(level).append("], ")
			.append("type: [").append(type).append("], ")
			.append("priority: [").append(priority).append("], ")
			.append("volume: [").append(volume).append("], ")
			.append("files: [").append(files).append("], ")
			.append("bytes: [").append(bytes).append("], ")
			.append("status: [").append(status).append("], ")
			.append("finished: [").append(finished).append("], ")
			.append("scheduled: [").append(scheduled).append("], ");
		return s.toString();
	}
}
